package com.keon.jianbao.ui.viewpagerfragment;

import android.os.Bundle;
import android.view.View;

import com.keon.jianbao.R;
import com.keon.jianbao.adapter.ViewPagerFragmentAdapter;
import com.keon.jianbao.api.ApiHttpClient;
import com.keon.jianbao.base.BaseViewPagerFragment;
import com.keon.jianbao.ui.fragment.TweetListFragment;

/**
 * Created by keon on 2015/9/6.
 */
public class FriendInfoViewPagerFragment extends BaseViewPagerFragment {

    int user_id;

    @Override
    protected void onSetupTabAdapter(ViewPagerFragmentAdapter adapter) {
        String[] tabs = getResources().getStringArray(R.array.friend_info_tab);

        Bundle t = getArguments();
        user_id = t.getInt("user_id");

        Bundle bundle = new Bundle();
        bundle.putInt("type", 3);
        bundle.putInt("user_id", user_id);
        bundle.putInt("page", 1);

        adapter.addTab(tabs[0], "", TweetListFragment.class, getBundle(0));

        adapter.addTab(tabs[1], "", TweetListFragment.class, bundle);
    }

    @Override
    protected void onSetupTabAdapter(ViewPagerFragmentAdapter adapter, String reponseData) {


    }

    @Override
    public void initView(View view) {

    }

    @Override
    public void initData() {
//        ApiHttpClient.g("http://www.baidu.com", mHandler);
    }

    @Override
    public void onClick(View view) {

    }
}
